﻿using System;

class Word
{
    public Position position;
    public string str;
    public ConsoleColor color;

    public Word(Position position, string str, ConsoleColor color)
    {
        this.position = position;
        this.str = str;
        this.color = color;
    }

    public void Shoot()
    {
        str = str.Remove(0, 1);
    }

    public bool IsDead()
    {
        return str == String.Empty;
    }

    public char this[int index]
    {
        get
        {
            return str[index];
        }
    }
}